<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\MyOrderController;
use App\Http\Controllers\Api\MyArticleController;
use App\Http\Controllers\Api\PersonalCenterController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Route::get('orderSel',[MyOrderController::class,'orderSel']);
Route::get('balanceSel',[MyOrderController::class,'balanceSel']);
Route::get('recordsSel',[MyOrderController::class,'recordsSel']);
Route::get('articleSel',[MyArticleController::class,'articleSel']);

//个人中心页面渲染
Route::get('personalCenter',[PersonalCenterController::class,'index']);

